// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_a;

import android.content.res.XmlResourceParser;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;

// Referenced classes of package com.nnee.p_pr.a:
//            l

public class cls_s
{

    public cls_s()
    {
    }

    private void b()
    {
        String s1 = e.getAttributeValue(null, "extension");
        String s2 = e.getAttributeValue(null, "mimetype");
        f.a(s1, s2);
    }

    public cls_l a()
    {
        f = new cls_l();
        int i=0;
		try {
			i = e.getEventType();
		} catch (XmlPullParserException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
        while(i != 1) 
        {
            String s1 = e.getName();
            if(i == 2)
            {
                if(!s1.equals("MimeTypes") && s1.equals("type"))
                    b();
            } else
            if(i != 3 || !s1.equals("MimeTypes"));
            try {
				i = e.next();
			} catch (XmlPullParserException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
        }
        return f;
    }

    public cls_l a(XmlResourceParser xmlresourceparser)
    {
        e = xmlresourceparser;
        return a();
    }

    public cls_l a(InputStream inputstream)
    {
        
        try {
        	e = XmlPullParserFactory.newInstance().newPullParser();
			e.setInput(new InputStreamReader(inputstream));
		} catch (XmlPullParserException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
        return a();
    }

    public static final String a = "MimeTypes";
    public static final String b = "type";
    public static final String c = "extension";
    public static final String d = "mimetype";
    private XmlPullParser e;
    private cls_l f;
}
